<?php

class Core_Action_Admin_System_Appearance_Menu_Item_Index extends Action_Admin
{
	function execute($request, $initial = FALSE, $script = NULL)
	{
		if ($initial)
		{
			Agilet::setVar('breadcrum', array(
				array(
					'url' => 'admin/system/appearance',
					'label' => 'Appearance'
				),
				array(
					'url' => 'admin/system/appearance/menu',
					'label' => 'Menu'
				),
				array(
					'url' => 'admin/system/appearance/menu/item',
					'label' => 'Edit'
				)
			));

		}

		$id = $request -> getParam('id');

		$name = $request -> getParam('menu-name');

		if ($request -> isGet())
		{

		}

		if ($request -> isPost() && $form -> isValid($_POST))
		{

		}

		$request -> response = View::render($script = 'core/html/admin/system/appearance/menu/item/index', $data = array(
			'menu_id' => $id,
			'menu_name' => $name
		));
	}

}
